<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	{
		// 构造函数
		function Box(){
		
		}
		Box.all = function(){
		
		}
	}
	{
		// 类增加静态方法
		class Desk{
			static my(){
				console.log("my")
			}
		}
		// 1
		Desk.all = function(){
			console.log("all")
		}
		Desk.all();
		Desk.my();
	}
	{
		// 静态方法也可以继承
		class Box{
			static race(){
				console.log("race")
			}
		}
		class Desk extends Box{}
		Desk.race();
	}
</script>
</html>